set(LLVM_LINK_COMPONENTS support)

if(BUILD_SHARED_LIBS)
    set(LIBTYPE SHARED)
else()
    set(LIBTYPE STATIC)
endif()

llvm_add_library(CodeGen ${LIBTYPE}
        CodeGenerator.cpp
        CGModule.cpp
)